<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>转数值</title>
    <script>
        var a = "200"
        var b = Number(a)
        console.log(a,typeof b)

        var c = "123,abvv"
        var d = parseInt(c)
        // parseFloat
        console.log(c,d)
    </script>
</head>
<body>
    
</body>
</html>